package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_wechat_page_user")
public class WechatPageUser extends Model<WechatPageUser> {

    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String USER_NAME = "user_name";
    public static final String AGE = "age";
    public static final String SEX = "sex";
    public static final String USER_PHONE = "user_phone";
    public static final String USER_ID_CARD = "user_id_card";
    public static final String WORK_TYPE_NAME = "work_type_name";
    public static final String TEAM_ID = "team_id";
    public static final String BZ_NAME = "bz_name";
    public static final String SITE_NAME = "site_name";
    public static final String SITE_ID = "site_id";
    public static final String TEAM_USER_NAME = "team_user_name";
    public static final String TEAM_USER_PHONE = "team_user_phone";
    public static final String JOIN_TIME = "join_time";
    public static final String PUSH_UID = "push_uid";
    public static final String CREATE_TIME = "create_time";
    public static final String TEAM_USER_PIC = "team_user_pic";
    public static final String USER_PIC = "user_pic";
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String userName;
    private String age;
    private String sex;
    private String userPhone;
    private String userIdCard;
    private String workTypeName;
    private Long teamId;
    private String bzName;
    private String siteName;
    private Long siteId;
    private String teamUserName;
    private String teamUserPhone;
    private String joinTime;
    private String pushUid;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    private String teamUserPic;
    private String userPic;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
